﻿using System;
using System.Runtime.Serialization;
using NCMIS.ObjectModel.MetaData;

namespace NCMIS.ObjectModel
{
    /// <summary>
    /// Utility class. Represents a pathed CMIS object, i.e. an object
    /// with the 'pathsegment' element (see 2.1.5.3 in CMIS spec).
    /// </summary>
    [DataContract(Namespace = CmisNs.Cmism)]
    public class PathedCmisObject
    {
        [DataMember(Name = "object")]
        public CmisObject @Object
        {
            get;
            set;
        }

        /// <summary>
        /// Pathsegment of an input object relative to the parent folder.
        /// </summary>
        [DataMember(Name = "relativePathSegment")]
        public string RelativePathSegment
        {
            get;
            set;
        }
    }
}
